#include "SavingsAccount.h"
#include <iostream>
using std::cout;
using std::endl;

int main(int argc, const char *argv[])
{
    SavingsAccount Saver1(2000.00);
    SavingsAccount Saver2(3000.00);

    cout << "Initial balance:\n";
    cout << "Saver1 :";
    Saver1.printBalance ();
    cout << '\t';
    cout << "Saver2 :";
    Saver2.printBalance ();
    cout << "\n\n";
 
    cout << "balance after 1 month's interst applied at .03:\n";
    Saver1.calculateMonthlyInterst ();
    Saver2.calculateMonthlyInterst ();
    cout << "Saver1 :";
    Saver1.printBalance ();
    cout << '\t';
    cout << "Saver2 :";
    Saver2.printBalance ();
    cout << "\n\n";
 
    cout << "balance after 1 month's interst applied at .04:\n";
    SavingsAccount::modifyInterstRate (0.04);
    Saver1.calculateMonthlyInterst ();
    Saver2.calculateMonthlyInterst ();
    cout << "Saver1 :";
    Saver1.printBalance ();
    cout << '\t';
    cout << "Saver2 :";
    Saver2.printBalance ();
    cout << endl;

    return 0;
}
